<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: @page size Media Size Self-Describing Names</title>
  <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
  <link rel="help" href="http://www.w3.org/TR/css3-page/#page-size-prop"/>
  <link rel="help" href="ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf"/>
  <meta name="flags" content="paged should" />
  <meta name="assert" content="User agents SHOULD also support Media Size Self-Describing Names as defined in Section 5 of [PWGMSN]."/>
  <style type="text/css"><![CDATA[
	@page {
		border: 2pt solid black;
		margin: 0.5in;
	}
	
	@page pageOne {size: na_index-3x5_3x5in;}
	@page pageTwo {size: na_index-4x6_4x6in;}
   	@page pageThree {size: na_6x9_6x9in;}
   	@page pageFour {size: na_letter_8.5x11in;}
   	@page pageFive {size: na_legal_8.5x14in;}
   
	p {page-break-after: always;}
	p#first {page: pageOne;}
	p#second {page: pageTwo;}
	p#third {page: pageThree;}
	p#fourth {page: pageFour;}
	p#fifth {page: pageFive;}
  ]]></style>
 </head>
 <body>
  	<p id="first">This test requires 5 pages. If 3in x 5in or larger paper is available, this content should be printed in a black box that has a width of 2 inches and a height of 4 inches.</p>
	<p id="second">If 4in x 6in or larger paper is available, this content should be printed in a black box that has a width of 3 inches and a height of 5 inches.</p>
	<p id="third">If 6in x 9in or larger paper is available, this content should be printed in a black box that has a width of 5 inches and a height of 8 inches.</p>
	<p id="fourth">If 8.5in x 11in or larger paper is available, this content should be printed in a black box that has a width of 7.5 inches and a height of 10 inches.</p>
	<p id="fifth">If 8.5in x 14in or larger paper is available, this content should be printed in a black box that has a width of 7.5 inches and a height of 13 inches.</p>
 </body>
</html>